package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 租户套餐表 实体类
 * 表名：sys_tenant_package
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_tenant_package")
public class SysTenantPackage implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 套餐编号
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 套餐名
     */
    @Column(name = "name", nullable = false, length = 30)
    private String name;
    
    /**
     * 租户状态（0正常 1停用）
     * 默认值: 0
     */
    @Column(name = "status", nullable = false)
    private Byte status;
    
    /**
     * 备注
     */
    @Column(name = "remark", length = 256)
    private String remark;
    
    /**
     * 关联的菜单编号
     */
    @Column(name = "menu_ids", nullable = false, length = 2048)
    private String menuIds;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", nullable = false, length = 64)
    private String createBy;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 是否删除(0、否 1、是)
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    @Override
    public String toString() {
        return "SysTenantPackage{" +
            "id=" + id +
            ", name=" + name +
            ", status=" + status +
            ", remark=" + remark +
            ", menuIds=" + menuIds +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", isDel=" + isDel +
        '}';
    }
} 